﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace ThouShaltNotBrickLevelEditor.Code.Renderers
{
    internal static class RendererHelpers
    {
        #region Constants
        private const double DPI_X = 96.0;
        private const double DPI_Y = 96.0;
        private static readonly PixelFormat PIXEL_FORMAT = PixelFormats.Pbgra32;
        #endregion

        #region Methods
        public static RenderTargetBitmap CreateRenderTargetBitmap(int width, int height)
        {
            RenderTargetBitmap rtb = new RenderTargetBitmap(
                width,
                height,
                DPI_X,
                DPI_Y,
                PIXEL_FORMAT);

            return rtb;
        }
        #endregion
    }
}